package com.zh.work.entity.trans;

import com.zh.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


@ApiModel("历史交易实体类")
@TableName("trans_backup")
@Data
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TransBackupEntity extends BaseEntity {
    private static final long serialVersionUID = 8734131117201779778L;

    @ApiModelProperty(value = "主键", name = "id ")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "交易日期", name = "transDate")
    private String transDate;
    @ApiModelProperty(value = "交易时间", name = "transTime")
    private String transTime;
    @ApiModelProperty(value = "类型代码", name = "typeCode")
    private String typeCode;
    @ApiModelProperty(value = "类型说明", name = "codeMemo")
    private String codeMemo;
    @ApiModelProperty(value = "商户号", name = "merchNo")
    @TableField(value = "merchno")
    private String merchNo;
    @ApiModelProperty(value = "商户名称", name = "merchName")
    private String merchName;
    @ApiModelProperty(value = "终端号", name = "termNo")
    @TableField(value = "termno")
    private String termNo;
    @ApiModelProperty(value = "卡号", name = "cardNo")
    @TableField(value = "cardno")
    private String cardNo;
    @ApiModelProperty(value = "交易金额", name = "amount")
    private Float amount;
    @ApiModelProperty(value = "商户手续费", name = "merchFee")
    private Float merchFee;
    @ApiModelProperty(value = "批次号", name = "batchNo")
    @TableField(value = "batchno")
    private String batchNo;
    @ApiModelProperty(value = "流水号", name = "traceNo")
    @TableField(value = "traceno")
    private String traceNo;
    @ApiModelProperty(value = "参考号", name = "refNo")
    @TableField(value = "refno")
    private String refNo;
    @ApiModelProperty(value = "授权号", name = "authNo")
    @TableField(value = "authno")
    private String authNo;
    @ApiModelProperty(value = "响应码", name = "respCode")
    private String respCode;
    @ApiModelProperty(value = "结算日期", name = "settleDate")
    private String settleDate;
    @ApiModelProperty(value = "结算类型(1-T+0结算 2-T+1结算 )", name = "settleType")
    private Integer settleType;
    @ApiModelProperty(value = "卡组织", name = "cardOrgan")
    private String cardOrgan;
    @ApiModelProperty(value = " 卡类型 (1-借记卡 2-贷记卡 4-准贷记卡 8-预付费卡)", name = "cardType")
    private Integer cardType;
    @ApiModelProperty(value = "卡介质 (1-磁条, 2-芯片 )", name = "cardMedia")
    private Integer cardMedia;
    @ApiModelProperty(value = "发卡行编号", name = "bankCode")
    private String bankCode;
    @ApiModelProperty(value = "发卡行名称", name = "bankName")
    private String bankName;
    @ApiModelProperty(value = "交易类型1.消费查询，2.余额查询", name = "transModel")
    private Integer transModel;
    @ApiModelProperty(value = "渠道编码", name = "channelCode")
    private String channelCode;
    @ApiModelProperty(value = "渠道商户号", name = "channelMerchNo")
    @TableField(value = "channel_merchno")
    private String channelMerchNo;
    @ApiModelProperty(value = "渠道终端编号", name = "channelTermNo")
    @TableField(value = "channel_termno")
    private String channelTermNo;
    @ApiModelProperty(value = "渠道批次号", name = "channelBatchNo")
    @TableField(value = "channel_batchno")
    private String channelBatchNo;
    @ApiModelProperty(value = "渠道流水号", name = "channelTraceNo")
    @TableField(value = "channel_traceno")
    private String channelTraceNo;
    @ApiModelProperty(value = "渠道参考号", name = "channelRefNo")
    @TableField(value = "channel_refno")
    private String channelRefNo;
    @ApiModelProperty(value = "渠道响应吗", name = "channelRespCode")
    private String channelRespCode;
    @ApiModelProperty(value = "渠道手续费", name = "channelFee")
    private Float channelFee;
    @ApiModelProperty(value = "交易状态0.待回应,1.交易成功，2.交易失败,3.已冲正,4.已撤销", name = "transStatus")
    private Integer transStatus;
    @ApiModelProperty(value = "小票上传状态1.未提交，2.已提交", name = "ticketStatus")
    private Integer ticketStatus;
    @ApiModelProperty(value = "小票路径", name = "ticketPath")
    private String ticketPath;
    @ApiModelProperty(value = "小票审核状态 (1-未审核 2-审核通过 3-审核拒绝)", name = "ticketAudit")
    private Integer ticketAudit;
    @ApiModelProperty(value = "冻结状态(1-正常 2-已冻结)", name = "frozenStatus")
    private Integer frozenStatus;
    @ApiModelProperty(value = "冻结日期", name = "frozenDate")
    private String frozenDate;
    @ApiModelProperty(value = "解冻日期", name = "unfrozenDate")
    private String unfrozenDate;
    @ApiModelProperty(value = "交易地址", name = "transAddress")
    private String transAddress;
    @ApiModelProperty(value = "出款流水号", name = "liquidTraceNo")
    @TableField(value = "liquid_traceno")
    private String liquidTraceNo;
    @ApiModelProperty(value = "机构编号", name = "branchNo")
    @TableField(value = "branchno")
    private String branchNo;
    @ApiModelProperty(value = "机构名称", name = "branchName")
    private String branchName;
    @ApiModelProperty(value = "业务类型" +
            "01001: 民生收款" +
            "01002: 一般收款" +
            "01003: 批发收款" +
            "01004: 餐娱收款" +
            "02001: T+0收款" +
            "02002: T+1收款", name = "businessType")
    private String businessType;
    @ApiModelProperty(value = "支付方式", name = "payType")
    private Integer payType;
    @ApiModelProperty(value = "一级代理商名称", name = "firstAgentName")
    private String firstAgentName;
    @ApiModelProperty(value = "ip地址", name = "ip")
    private String ip;
    @ApiModelProperty(value = "提现手续费", name = "payFee")
    private Float payFee;
    @ApiModelProperty(value = "一级代理商编号", name = "firstAgentNo")
    @TableField(value = "first_agentno")
    private String firstAgentNo;
    @ApiModelProperty(value = "代理商编号", name = "agentNo")
    @TableField(value = "agentno")
    private String agentNo;
    @ApiModelProperty(value = "代理商名称", name = "agentName")
    private String agentName;
    @ApiModelProperty(value = "结算状态1.未出款，2.出款中，3.已出款", name = "liquidStatus")
    private Integer liquidStatus;
    @ApiModelProperty(value = "平台总手续费", name = "headFee")
    private Float headFee;
    @ApiModelProperty(value = "身份证正面照", name = "identityHoldImg")
    private String identityHoldImg;
    @ApiModelProperty(value = "手持银行卡", name = "cardHoldImg")
    private String cardHoldImg;
    @ApiModelProperty(value = "T+0增收商户手续费", name = "t0MerchFee")
    private Float t0MerchFee;
    @ApiModelProperty(value = "T+0增收渠道手续费", name = "t0ChannelFee")
    private Float t0ChannelFee;
    @ApiModelProperty(value = "T+0增收平台手续费", name = "t0HeadFee")
    private Float t0HeadFee;
    @ApiModelProperty(value = "审核理由", name = "auditReason")
    private String auditReason;
    @ApiModelProperty(value = "清算方(1-平台清算 2-渠道清算)", name = "liquidator")
    private Integer liquidator;
    @ApiModelProperty(value = "出款备注", name = "liquidDesc")
    private String liquidDesc;
    @ApiModelProperty(value = "查询类型1.实时数据，2历史数据", name = "type")
    @TableField(exist = false)
    private Integer type;


}
